package com.zijie.hosptal.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zijie.hosptal.pojo.po.Department;
import com.zijie.hosptal.pojo.po.Doctor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import javax.print.Doc;

@Mapper
public interface DoctorMapper extends BaseMapper<Doctor> {
     Page<Doctor> findList(Page<Doctor> doctorPage, Doctor doctor);

     Doctor selectById(Integer id);

    @Select("select count(1) from doctor")
     Integer getDoctorTotal();

}
